package com.lihua.notify.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 通知
 * @author 15594
 *
 */
@Component
@RefreshScope
public class Notify {
    /**标题*/
    @Value("${notify.title}")
    private String title;

    /**消息体*/
    @Value("${notify.message}")
    private String message;

    /**作者（消息发送者）*/
    @Value("${notify.author}")
    private String author;

    /**时间*/
    @Value("${notify.time}")
    private String time;

    /**联系方式*/
    @Value("${notify.connect}")
    private String connect;

    public Notify() {
    }

    public Notify(String title, String message, String author, String time, String connect) {
        this.title = title;
        this.message = message;
        this.author = author;
        this.time = time;
        this.connect = connect;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getConnect() {
        return connect;
    }

    public void setConnect(String connect) {
        this.connect = connect;
    }

    @Override
    public String toString() {
        return "Notify{" +
                "title='" + title + '\'' +
                ", message='" + message + '\'' +
                ", author='" + author + '\'' +
                ", time='" + time + '\'' +
                ", connect='" + connect + '\'' +
                '}';
    }
}
